Skip to content

Create BottomUpReconciliator #1058

Merged
merged 5 commits into from
Jan 3, 2023
Merged

Conversation

brsnw250
Copy link
Collaborator

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Proposed Changes

Closing issues

closes #1037

@github-actions
Copy link

github-actions bot commented Dec 30, 2022

@github-actions github-actions bot temporarily deployed to pull request December 30, 2022 13:30 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Dec 30, 2022

Codecov Report

❗ No coverage uploaded for pull request base (hierarchical_pipeline@6985a21). Click here to learn what that means.
The diff coverage is n/a.

@@                   Coverage Diff                    @@
##             hierarchical_pipeline    #1058   +/-   ##
========================================================
  Coverage                         ?   86.48%           
========================================================
  Files                            ?      168           
  Lines                            ?     8917           
  Branches                         ?        0           
========================================================
  Hits                             ?     7712           
  Misses                           ?     1205           
  Partials                         ?        0           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

etna/reconciliation/bottom_up.py Outdated Show resolved Hide resolved
if current_level_index < source_level_index:
raise ValueError("Current TSDataset level should be lower or equal in the hierarchy than the source level!")

if (ts[..., "target"] < 0).values.any():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method works correctly with the values of any kind

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this check for consistency purpose only. I think in this case we should add info about nonnegative numbers to TopDownReconciliator doc.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, may you do it in this PR

@github-actions github-actions bot temporarily deployed to pull request January 3, 2023 07:58 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 3, 2023 10:17 Inactive
@alex-hse-repository alex-hse-repository merged commit 5ca0eeb into hierarchical_pipeline Jan 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants